<template>
  <div>
    兄弟的值-->{{value}} <br>
    <button @click="sonchg">修改兄弟的值</button>
  </div>
</template>

<script>
export default {
  mounted () {
    this.$bas.$on('gg', (msg) => {
      this.value = msg
    })
  },
  name: 'my-slot',
  data () {
    return {
      value: ''
    }
  },
  methods: {
    sonchg () {
      this.$bas.$emit('dd', '子类的值')
    }
  }
}
</script>

<style scoped>
</style>
